<div class="headerW">
<div class="header">
	<div class="logo">
    	<a href="/"> <?php echo $cfg['webname'] ;?></a>    </div>
    <div class="mainNav">
    	<ul>
        	<li class="home"><a href="/index.php">首页</a></li>
            <?php 
            	foreach( $DT->top() as $v ){
                	echo "<li><a href=\"{$v['typeurl']}\">{$v['typename']}</a></li>";
                };
            ?>
        </ul>
    </div>
</div>
</div>